<{include file="header.html"}>
<script type="text/javascript">

	function validate()
	{
        var pass = document.getElementById('pwd');
        var email = document.getElementById('login');
        
        if(isEmptyTextBox(email, '<{$smarty.const._LB_EMAIL_IS_EMPTY|utf8_escape_js}>'))
			return false;
        if(!isValidLengthTextBox(email, <{$smarty.const.MAX_LENGTH_NAME}>, '<{$smarty.const._MSG_EMAIL_IS_TOO_LONG|utf8_escape_js}>')){
            return false;
        }
        
        if(!isValidEmail(email,'<{$smarty.const._LB_INVALID_EMAIL|utf8_escape_js}>')){
            return false;
        }
        if(isEmptyTextBox(pass, '<{$smarty.const._LB_PASSWORD_IS_EMPTY|utf8_escape_js}>'))
			return false;
		document.user_form.submit();
	}



</script>
<div id="content">
    <div class="container">
        <div class="main-content">
            <h1 class="title"><{$smarty.const._LB_LOGIN|utf8_escape_html}></h1>
            <form action="<{$smarty.server.REQUEST_URI}>" method="post" name="user_form" id="form-booking">
                <input type="hidden" id="act" name="act" value="<{$smarty.const.ACT_VALID_EDIT}>"/>
                <table>
                    <tr>
                        <td ><{$smarty.const._LB_EMAIL|utf8_escape_html}>&nbsp;:&nbsp;<{$smarty.const._LB_REQUIRE_FIELD}></td>
                        <td colspan="3">
							<input name="login" id="login" type="text" size="<{$smarty.const.SIZE_NAME}>" value="<{$member->EMAIL|utf8_escape_html}>" />
							Please click <a href="<{$smarty.const.APPLICATION_URL_FO}>/member/register/">here</a> to register an new account
						</td>
						
                    </tr>
                    <tr>
                        <td ><{$smarty.const._LB_PASSWORD|utf8_escape_html}>&nbsp;:&nbsp;<{$smarty.const._LB_REQUIRE_FIELD}></td>
                        <td colspan="3">
							<input name="pwd" id="pwd" type="password" size="<{$smarty.const.SIZE_NAME}>" value="" />
							
						</td>
                    </tr>
					<tr>
                        <td ></td>
                        <td colspan="3">
							
						</td>
                    </tr>
                    <tr>
						<td ></td>
						<td class="submit" colspan="3" style="padding-top:10px"><br />
								<button type="reset" ><{$smarty.const._LB_RESET}></button>
								<button type="button" onclick="validate()"><{$smarty.const._LB_VALIDATE}></button>
                            </td>
                        </tr>
                </table>
            </form>
        </div>
        <div class="sidebar">
            <{include file="right_business_hours.html"}>
			<{include file="right_service.html"}>
        </div><!--End .sidebar-->
    </div>
</div>
<{include file="footer.html"}>